package com.bsdk.install.device.watermeter;


import com.bsdk.install.device.lockLora.LockLora;

public class WaterMeterFactory {

    public LockLora createLockV(String vession, String devId, String mac) {


        switch (vession) {
            case "v1":

                return (LockLora) new com.bsdk.install.device.watermeter.v1.DeviceCmd(devId, mac);

            case "v2":
                return (LockLora) new com.bsdk.install.device.watermeter.v2.DeviceCmd(devId, mac);
            default:
                return null;
        }

    }

    public LockLora createLockV(String vession) {

        switch (vession) {
            case "v1":

                return (LockLora) new com.bsdk.install.device.watermeter.v1.DeviceCmd();

            case "v2":
                return (LockLora) new com.bsdk.install.device.watermeter.v2.DeviceCmd();
            default:
                return null;
        }

    }

}
